<?php
namespace MyContent\Form;

use Zend\Form\Form;

class Login extends Form
{
		
	public function __construct()
	{
		parent::__construct('login');
		$this->setAttribute('action', '/login');
		$this->setAttribute('method', 'post');
		$this->setInputFilter(new \MyContent\Form\LoginFilter());
		
		$this->add(array(
				'name' => 'username',
				'attributes' => array(
					'type' => 'text',						
				),
				'options' => array(
					'label'	=> 'User'
						)
				));
		
		$this->add(array(
				'name' => 'password',
				'attributes' => array(
						'type' => 'Password',
						),
				'options' => array(
						'label' => 'password'
						),
				));
		
	$this->add(array(
			'name' => 'submit',
			'attributes' => array(
					'type' => 'submit',
					'valie' => 'Einloggen'
					),
			));
	}
	
}